package org.lai.config;

import org.lai.interceptor.DamoInterceptor;
import org.lai.interceptor.TokenInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration // 表明这是一个配置类
public class WebMvcConfig  implements WebMvcConfigurer{
//    @Autowired
//    private DamoInterceptor damoInterceptor;
//    @Autowired
//    private TokenInterceptor tokenInterceptor;
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(tokenInterceptor).addPathPatterns("/**");
//    }
}
